find s algorithm in machine learning